function foo() {
    var name = '海涛'
    console.log(this.name);
}

var name = '国强'

foo()